import { putEventHttp } from '../../../../../src/request/eventHttp.js'
export const handleevent = (status) => {
  let flag = 2
  // 通过
  async function handlepass(id) {
    putEventHttp(id)
    status.value = 2
  }
  // 忽略
  function handleclick(id) {
    putEventHttp(id, flag)
    status.value = 1
  }

  return {
    handlepass,
    handleclick,
  }
}
